-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(form-v2): set opacity for fields hidden by logic in builder #4482
Conversation
.../admin-form/create/builder-and-design/BuilderAndDesignContent/FieldRow/FieldRowContainer.tsx
Outdated
Show resolved
Hide resolved
…at/builder-fields-hidden
<Tooltip | ||
hidden={!isHiddenByLogic} | ||
placement="top" | ||
label="This field may be hidden by your form logic" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may be
or is
? Asking because the Tooltip's only control on its hidden state is isHiddenByLogic
🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hahah. this was the copy that was agreed upon. In actual fact, the field is hidden by logic by default (i.e. on first load of the form). Could change the variable name to isDefaultHiddenByLogic
if that feels better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, let's keep it. We can revisit later if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may is correct, since a logic match will show the field yea?
Problem
Fields hidden by default due to logic hiding are greyed out in the form builder in angular, but we don't show them as hidden in react.
Closes #4442
Solution
getVisibleFieldsId
from logic to determine which fields are displayed by default.Breaking Changes
Screenshots